package com.hava.contentsale.meta;

import com.hava.contentsale.utils.OutputObject;

import java.math.BigDecimal;

/**
 * Created by yanfa on 2016/11/15.
 * Product的定义，由于结合不同显示接口，并且不同显示product接口的属性并不冲突，则生成了一下的定义内容
 */
public class ProductVO extends OutputObject{

    long id;

    String title;

    String summary;

    String detail;

    String image;

    BigDecimal price;

    BigDecimal buyPrice;

    Boolean isBuy;

    Boolean isSell;

    // freemarker must rewrite set

    public Boolean getisBuy() {
        return isBuy;
    }

    public void setBuy(Boolean buy) {
        isBuy = buy;
    }

    public Boolean getisSell() {
        return isSell;
    }

    public void setSell(Boolean sell) {
        isSell = sell;
    }


    // Getter and Setter

    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getSummary() {
        return summary;
    }

    public void setSummary(String summary) {
        this.summary = summary;
    }

    public String getDetail() {
        return detail;
    }

    public void setDetail(String detail) {
        this.detail = detail;
    }

    public String getImage() {
        return image;
    }

    public void setImage(String image) {
        this.image = image;
    }

    public BigDecimal getPrice() {
        return price;
    }

    public void setPrice(BigDecimal price) {
        this.price = price;
    }

    public BigDecimal getBuyPrice() {
        return buyPrice;
    }

    public void setBuyPrice(BigDecimal buyPrice) {
        this.buyPrice = buyPrice;
    }

    public Boolean getBuy() {
        return isBuy;
    }

    public Boolean getSell() {
        return isSell;
    }
}
